package com.buka.controller;



import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.buka.entity.Address;
import com.buka.service.AddressService;
import com.buka.util.JsonData;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * 电商-公司收发货地址表(Address)表控制层
 *
 * @author makejava
 * @since 2025-07-30 16:34:06
 */
@RestController
@RequestMapping("api/address/v1")
public class AddressController extends ApiController {

    @Resource
    AddressService addressService;

    @GetMapping("list")
    public JsonData list(){
        return addressService.listByUser();
    }

}

